package com.emergency.assist.domain;

import com.emergency.base.domain.BaseEntity;

import javax.persistence.*;
import java.math.BigDecimal;
import com.emergency.db.domain.info.RescueItem;


/**
 * Created by qiuyan.pei on 2020/4/3.
 * Resource的子表
 */
@Entity
@Table(name = "bus_resource_vehical")

public class Vehical extends BaseEntity {

    @OneToOne(targetEntity = Resource.class, fetch = FetchType.LAZY)
    @JoinColumn(name = "resource_id", referencedColumnName = "id")
    private Resource resource;


    @OneToOne(targetEntity = RescueItem.class, fetch = FetchType.LAZY)
    @JoinColumn(name = "rescue_item_id", referencedColumnName = "id")
    private RescueItem hugeItemStatus ;


}
